import tree from 'element-ui/packages/tree'

export const tableOption = {
  searchMenuSpan: 6,
  columnBtn: false,
  border: true,
  selection: false,
  index: false,
  indexLabel: '序号',
  stripe: true,
  menuAlign: 'center',
  menuWidth: 350,
  align: 'center',
  refreshBtn: false,
  searchSize: 'mini',
  addBtn: false,
  editBtn: false,
  delBtn: false,
  props: {
    label: 'label',
    value: 'value'
  },
  column: [
    {
      label: '土地标题',
      prop: 'prodName',
      type: 'input',
    },
    {
      label: '留言类型',
      prop: 'msgTypeId',
      type: 'select',
      search: true,
      slot: true,
      show: false,
      type: 'select',
      dicData: JSON.parse(localStorage.getItem("msgTypelist"))
    },
    {
      label: '留言类型',
      prop: 'msgTypeName',
      type: 'select',
      
    },
    // {
    //   label: '留言类型',
    //   prop: 'msgType',
    //   type: 'select',
    //   search: true,
    //   hide: true,
    //   searchSpan: 4,
    //   dicUrl: '/msgType/page?current=1&pageSize=999',
    //   // dicMethod: 'get',
    //   searchFilterable: true,
    //   // remote: true,
    //   filterable: true,
    //   props: {
    //     label: 'id',
    //     value: 'name'
    //   },
    //   dicFormatter: (res) => {
    //     console.log('res', res)
    //   }
    // },
    {
      label: '姓名',
      prop: 'username',
      search: true,
      slot: true,
      type: 'input',
    },
    {
      label: '手机号码',
      prop: 'phone',
      search: true,
      slot: true,
      type: 'input',
    },
    {
      label: '企业',
      prop: 'company',
      search: true,
      slot: true,
      type: 'input',
    },
    {
      label: '创建时间',
      prop: 'createTime',
      type: 'datetime',
      searchRange: true,
      searchSpan: 7
    }
  ]
}
